\doxysection{master\+\_\+process.\+h}
\hypertarget{master__process_8h_source}{}\label{master__process_8h_source}\index{C:/Users/ASUS/Desktop/dm-\/ctrlH7-\/balance-\/9025test/modules/master\_machine/master\_process.h@{C:/Users/ASUS/Desktop/dm-\/ctrlH7-\/balance-\/9025test/modules/master\_machine/master\_process.h}}

\begin{DoxyCode}{0}
\DoxyCodeLine{00001\ \textcolor{preprocessor}{\#ifndef\ MASTER\_PROCESS\_H}}
\DoxyCodeLine{00002\ \textcolor{preprocessor}{\#define\ MASTER\_PROCESS\_H}}
\DoxyCodeLine{00003\ }
\DoxyCodeLine{00004\ \textcolor{preprocessor}{\#include\ "{}bsp\_usart.h"{}}}
\DoxyCodeLine{00005\ \textcolor{preprocessor}{\#include\ "{}seasky\_protocol.h"{}}}
\DoxyCodeLine{00006\ }
\DoxyCodeLine{00007\ \textcolor{preprocessor}{\#define\ VISION\_RECV\_SIZE\ 18u\ }\textcolor{comment}{//\ 当前为固定值,36字节}}
\DoxyCodeLine{00008\ \textcolor{preprocessor}{\#define\ VISION\_SEND\_SIZE\ 36u}}
\DoxyCodeLine{00009\ }
\DoxyCodeLine{00010\ \textcolor{preprocessor}{\#pragma\ pack(1)}}
\DoxyCodeLine{00011\ \textcolor{keyword}{typedef}\ \textcolor{keyword}{enum}}
\DoxyCodeLine{00012\ \{}
\DoxyCodeLine{00013\ \ \ \ \ NO\_FIRE\ =\ 0,}
\DoxyCodeLine{00014\ \ \ \ \ AUTO\_FIRE\ =\ 1,}
\DoxyCodeLine{00015\ \ \ \ \ AUTO\_AIM\ =\ 2}
\DoxyCodeLine{00016\ \}\ Fire\_Mode\_e;}
\DoxyCodeLine{00017\ }
\DoxyCodeLine{00018\ \textcolor{keyword}{typedef}\ \textcolor{keyword}{enum}}
\DoxyCodeLine{00019\ \{}
\DoxyCodeLine{00020\ \ \ \ \ NO\_TARGET\ =\ 0,}
\DoxyCodeLine{00021\ \ \ \ \ TARGET\_CONVERGING\ =\ 1,}
\DoxyCodeLine{00022\ \ \ \ \ READY\_TO\_FIRE\ =\ 2}
\DoxyCodeLine{00023\ \}\ Target\_State\_e;}
\DoxyCodeLine{00024\ }
\DoxyCodeLine{00025\ \textcolor{keyword}{typedef}\ \textcolor{keyword}{enum}}
\DoxyCodeLine{00026\ \{}
\DoxyCodeLine{00027\ \ \ \ \ NO\_TARGET\_NUM\ =\ 0,}
\DoxyCodeLine{00028\ \ \ \ \ HERO1\ =\ 1,}
\DoxyCodeLine{00029\ \ \ \ \ ENGINEER2\ =\ 2,}
\DoxyCodeLine{00030\ \ \ \ \ INFANTRY3\ =\ 3,}
\DoxyCodeLine{00031\ \ \ \ \ INFANTRY4\ =\ 4,}
\DoxyCodeLine{00032\ \ \ \ \ INFANTRY5\ =\ 5,}
\DoxyCodeLine{00033\ \ \ \ \ OUTPOST\ =\ 6,}
\DoxyCodeLine{00034\ \ \ \ \ SENTRY\ =\ 7,}
\DoxyCodeLine{00035\ \ \ \ \ BASE\ =\ 8}
\DoxyCodeLine{00036\ \}\ Target\_Type\_e;}
\DoxyCodeLine{00037\ }
\DoxyCodeLine{00038\ \textcolor{keyword}{typedef}\ \textcolor{keyword}{struct}}
\DoxyCodeLine{00039\ \{}
\DoxyCodeLine{00040\ \ \ \ \ Fire\_Mode\_e\ fire\_mode;}
\DoxyCodeLine{00041\ \ \ \ \ Target\_State\_e\ target\_state;}
\DoxyCodeLine{00042\ \ \ \ \ Target\_Type\_e\ target\_type;}
\DoxyCodeLine{00043\ }
\DoxyCodeLine{00044\ \ \ \ \ \textcolor{keywordtype}{float}\ pitch;}
\DoxyCodeLine{00045\ \ \ \ \ \textcolor{keywordtype}{float}\ yaw;}
\DoxyCodeLine{00046\ \}\ \mbox{\hyperlink{struct_vision___recv__s}{Vision\_Recv\_s}};}
\DoxyCodeLine{00047\ }
\DoxyCodeLine{00048\ \textcolor{keyword}{typedef}\ \textcolor{keyword}{enum}}
\DoxyCodeLine{00049\ \{}
\DoxyCodeLine{00050\ \ \ \ \ COLOR\_NONE\ =\ 0,}
\DoxyCodeLine{00051\ \ \ \ \ COLOR\_BLUE\ =\ 1,}
\DoxyCodeLine{00052\ \ \ \ \ COLOR\_RED\ =\ 2,}
\DoxyCodeLine{00053\ \}\ Enemy\_Color\_e;}
\DoxyCodeLine{00054\ }
\DoxyCodeLine{00055\ \textcolor{keyword}{typedef}\ \textcolor{keyword}{enum}}
\DoxyCodeLine{00056\ \{}
\DoxyCodeLine{00057\ \ \ \ \ VISION\_MODE\_AIM\ =\ 0,}
\DoxyCodeLine{00058\ \ \ \ \ VISION\_MODE\_SMALL\_BUFF\ =\ 1,}
\DoxyCodeLine{00059\ \ \ \ \ VISION\_MODE\_BIG\_BUFF\ =\ 2}
\DoxyCodeLine{00060\ \}\ Work\_Mode\_e;}
\DoxyCodeLine{00061\ }
\DoxyCodeLine{00062\ \textcolor{keyword}{typedef}\ \textcolor{keyword}{enum}}
\DoxyCodeLine{00063\ \{}
\DoxyCodeLine{00064\ \ \ \ \ BULLET\_SPEED\_NONE\ =\ 0,}
\DoxyCodeLine{00065\ \ \ \ \ BIG\_AMU\_10\ =\ 10,}
\DoxyCodeLine{00066\ \ \ \ \ SMALL\_AMU\_15\ =\ 15,}
\DoxyCodeLine{00067\ \ \ \ \ BIG\_AMU\_16\ =\ 16,}
\DoxyCodeLine{00068\ \ \ \ \ SMALL\_AMU\_18\ =\ 18,}
\DoxyCodeLine{00069\ \ \ \ \ SMALL\_AMU\_30\ =\ 30,}
\DoxyCodeLine{00070\ \}\ Bullet\_Speed\_e;}
\DoxyCodeLine{00071\ }
\DoxyCodeLine{00072\ \textcolor{keyword}{typedef}\ \textcolor{keyword}{struct}}
\DoxyCodeLine{00073\ \{}
\DoxyCodeLine{00074\ \ \ \ \ Enemy\_Color\_e\ enemy\_color;}
\DoxyCodeLine{00075\ \ \ \ \ Work\_Mode\_e\ work\_mode;}
\DoxyCodeLine{00076\ \ \ \ \ Bullet\_Speed\_e\ bullet\_speed;}
\DoxyCodeLine{00077\ }
\DoxyCodeLine{00078\ \ \ \ \ \textcolor{keywordtype}{float}\ yaw;}
\DoxyCodeLine{00079\ \ \ \ \ \textcolor{keywordtype}{float}\ pitch;}
\DoxyCodeLine{00080\ \ \ \ \ \textcolor{keywordtype}{float}\ roll;}
\DoxyCodeLine{00081\ \}\ \mbox{\hyperlink{struct_vision___send__s}{Vision\_Send\_s}};}
\DoxyCodeLine{00082\ \textcolor{preprocessor}{\#pragma\ pack()}}
\DoxyCodeLine{00083\ }
\DoxyCodeLine{00089\ \mbox{\hyperlink{struct_vision___recv__s}{Vision\_Recv\_s}}\ *VisionInit(\mbox{\hyperlink{group___u_a_r_t___exported___types_ga5de4a49eb132735325e706f406c69d6e}{UART\_HandleTypeDef}}\ *\_handle);}
\DoxyCodeLine{00090\ }
\DoxyCodeLine{00095\ \textcolor{keywordtype}{void}\ VisionSend();}
\DoxyCodeLine{00096\ }
\DoxyCodeLine{00104\ \textcolor{keywordtype}{void}\ \mbox{\hyperlink{master__process_8c_a15c27cb9fdefbd03c7412875b2264089}{VisionSetFlag}}(Enemy\_Color\_e\ enemy\_color,\ Work\_Mode\_e\ work\_mode,\ Bullet\_Speed\_e\ bullet\_speed);}
\DoxyCodeLine{00105\ }
\DoxyCodeLine{00112\ \textcolor{keywordtype}{void}\ \mbox{\hyperlink{master__process_8c_a5d73953facff68063ecc619222ac1b35}{VisionSetAltitude}}(\textcolor{keywordtype}{float}\ yaw,\ \textcolor{keywordtype}{float}\ pitch,\ \textcolor{keywordtype}{float}\ roll);}
\DoxyCodeLine{00113\ }
\DoxyCodeLine{00114\ \textcolor{preprocessor}{\#endif\ }\textcolor{comment}{//\ !MASTER\_PROCESS\_H}}

\end{DoxyCode}
